package com.schoolcloud.serve.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;

/**
 * 失物表或拾物表的图片
 * @TableName lost_found_pic
 */
@TableName(value ="lost_found_pic")
@Data
public class LostFoundPic implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer picId;

    /**
     * 失物表id（可选）
     */
    private Integer lostItemId;

    /**
     * 拾物表id（可选）
     */
    private Integer foundItemId;

    /**
     * 图片地址
     */
    private String url;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
